package com.hsc.www.selfLock;

import com.hsc.lock.annotation.ReplayLock;
import org.springframework.stereotype.Service;

@Service
public class LoginService {


    @ReplayLock(key = "#id")
    public boolean doLogin(String id,String name) {
        System.out.println("doLogin success……");
        return true;
    }

}
